package crp.core.portal.domain.repositories;

import crp.core.portal.domain.models.PortalBannerEntity;
import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase;

import javax.enterprise.context.ApplicationScoped;
import java.util.stream.Stream;

@ApplicationScoped
public class PortalBannerRepository implements PanacheRepositoryBase<PortalBannerEntity, String> {

    public Stream<PortalBannerEntity> findOrderedAll() {
        return findAll().stream();
    }

}
